package com.ai.mapper;

import com.ai.entity.SysGeneratorEntity;
import com.ai.web.request.SysGeneratorReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 代码生成
 */
public interface GeneratorMapper extends BaseMapper<SysGeneratorEntity> {

    IPage<SysGeneratorEntity> selectAllTables(Page<SysGeneratorEntity> page, @Param(value = "vo") SysGeneratorReq sysGeneratorReq);

    Map<String, String> queryTable(String tableName);

    List<Map<String, String>> queryColumns(String tableName);
}
